export function getScreen(){
//通过一下时间判断当前页面是否处于全部状态，根据状态的不同对screen的值进行改变（监听状态）

    document.addEventListener('fullscreenchange', () => {
        return  window.fullScreen || document.msFullscreenEnabled || document.webkitIsFullScreen
    });
//火狐
    document.addEventListener('mozfullscreenchange', () => {
        return window.fullScreen || document.msFullscreenEnabled || document.webkitIsFullScreen
    });
// 谷歌
    document.addEventListener('webkitfullscreenchange', () => {
        return window.fullScreen || document.msFullscreenEnabled || document.webkitIsFullScreen
    });
// ie
    document.addEventListener('msfullscreenchange', () => {
        return window.fullScreen || document.msFullscreenEnabled || document.webkitIsFullScreen
    });
}

